package com.zhou.common.pub.enums;

/**
 * @author xianfeng
 * @date 2023/7/25 16:39
 */
public enum ResponseEnum implements BaseEnum<Integer, String> {

    /**
     *
     */
    SUCCESS(0, "操作成功"),
    PARAM_ERROR(30001, "参数错误"),
    SYSTEM_ERROR(30000, "服务器忙，请稍后重试"),
    ;

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}